
/**
 * 获取上个月
 * @param data 2010-10
 * @return
 */
	function getLastMonth(data)
	{
		var year = '';
		var month = '';
	    var data_r = data.split('-');
		month = data_r[1];
		year = data_r[0];
	
	        if (month == '01')
			{
				return (year-1)+'-12';
			}else {
				month = ''+(month-1);
				
				if (month.length ==2)
				{
				   return year + '-'+ month;
				}else{
				   return year + '-0'+month;
				}
				
				
			}
	}
	/**
	 * 获取下个月
	 * @param data 2010-10
	 * @return
	 */
		function getNextMonth(data)
		{
			var year = '';
			var month = '';
			var data_r = data.split('-');
			month = data_r[1];
			year = data_r[0];
		
		        if (month == '12')
				{
					return (year*1+1)+'-01';
				}else {
					month = ''+(month*1+1);
					if (month.length ==2)
					{
					   return year + '-'+ month;
					}else{
					   return year + '-0'+month;
					}
					
					
				}
		}